#!/bin/sh

set -eu

tests_file=${1:-tmp/tests.json}
if [ ! -f "$tests_file" ]; then
  (./manage.py test --noinput -v 2 2>&1 || true) > .tests
fi

jq '' "$tests_file"
